package com.kkb.test;

import com.github.pagehelper.PageInfo;
import com.kkb.pojo.Menu;
import com.kkb.service.ResourceService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Lxy
 * @create 2022-03-22 2:06
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring.xml"})
public class testMenuList {
    @Resource
    private ResourceService service;

    @Test
    public void testMenuList(){
        String ResourceName = "管理";
        PageInfo<Menu> pageInfo = service.getMenuList(2, 3,ResourceName);
        System.out.println(pageInfo.toString());
    }

}
